package com.sq.partner.manager.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.sq.partner.manager.mybatis.model.NocarProdDefalut;
import com.sq.partner.manager.mybatis.model.NocarRisk;
import com.sq.partner.manager.mybatis.model.NocarRiskCal;
import com.sq.partner.manager.util.Page;

import java.util.List;
import java.util.Map;

public interface ITradNoCarRiskProdDao extends BaseDao {

	public Page<NocarRisk> queryRiskPlanBasePage(Page<NocarRisk> page,String prodCode) throws SQLException;

	public void saveNocarRisk(NocarRisk noCarRisk) throws Exception;

	public void updateRisk(NocarRisk noCarRisk) throws Exception;

	public void deleteRisk(NocarRisk noCarRisk) throws Exception;

	public boolean isExistRisk(String prodCode, String riskCode) throws SQLException;

	public void deleteRiskByProdCode(String prodCode) throws Exception;

	public NocarRisk findMaxNocarRiskCode(NocarRisk nocarRisk) throws SQLException;

	public int queryProdRiskCountByCode(String prodCode) throws SQLException;
	
	public List<NocarRisk> findNocarByMap(Map<String, Object> map) throws SQLException;

	public List<Map<String, Object>> searchNoCarRisksByprodCode(Map<String, Object> map) throws SQLException;

	public  List<Map<String, Object>> searchNoCarProdDefaultsByprodCode(Map<String, Object> map)  throws SQLException;

	public List<Map<String, Object>> searchNoCarRiskCalsByprodCode(Map<String, Object> map) throws SQLException;

}
